import axios from 'axios';

export function getUserInfoPage(params: any) {
  return axios.get('/mall/userinfo/page', { params });
}

export function addUserInfo(data: any) {
  return axios.post('/mall/userinfo', data);
}

export function updateUserInfo(data: any) {
  return axios.put('/mall/userinfo', data);
}

/**
 *  需要将单引号'，换成反单引号`
 */
export function deleteUserInfo(id: string) {
  return axios.delete(`/mall/userinfo/${id}`);
}
